We don't need to touch it in arch_vcpu_reset() because that's only used
to recover from a failed suspend, and the correct behaviour there is to
leave the mapping as-is.
{
struct vcpu *v;
+ for_each_vcpu( d, v )
+ unmap_vcpu_info(v);
+
if ( is_hvm_domain(d) )
{
for_each_vcpu ( d, v )
int arch_vcpu_reset(struct vcpu *v)
{
- unmap_vcpu_info(v);
destroy_gdt(v);
vcpu_destroy_pagetables(v);
return 0;
/*
* Unmap the vcpu info page if the guest decided to place it somewhere
- * else. This is only used from arch_vcpu_reset, so there's no need
- * to do anything clever.
+ * else. This is only used from arch_domain_destroy, so there's no
+ * need to do anything clever.
*/
static void
unmap_vcpu_info(struct vcpu *v)